package com.jiantong.lawEnforcing.enums;

/**
 * 文书中各个记录的类型枚举类EvidenceInventory
 * Created by mz03 on 2017/8/8.
 */
public enum RecordTypeSecond {

    SURVEY_FORENSICS(1,"调查取证"),
    CASE_PROCESSING(2,"案件处理"),
    INFORM(3, "告知"),
    STATEMENT_ARGUED(4, "陈述申辩"),
    THE_HEARING(5, "听证"),
    PENALTY_DECISION(6, "处罚决定"),
    PROOF_OF_SERVICE(7,"送达回证"),
    SETTLE_LAWSUIT(8, "结案"),
    SET_BOOKS(9, "立卷"),
    OTHER(10, "其它");

    private final Integer value;
    private final String description;

    RecordTypeSecond(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public static RecordTypeSecond from(Integer value) {
        for (RecordTypeSecond recordType : RecordTypeSecond.values()) {
            if (recordType.value == value) {
                return recordType;
            }
        }
        return null;
    }

    public Integer value() {
        return this.value;
    }

    @Override
    public String toString() {
        return description;
    }
}
